<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${rc.contextPath}/css/website.css" type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/js/jquery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="${rc.contextPath}/js/page.js"></script>
<script type="text/javascript" src="${rc.contextPath}/js/lightBox.js"></script>
<script type="text/javascript">
	var sysncnow = {
			sync:function(isVideo){
				//var url = "http://192.168.1."+ip+"/interfaces/c4_sync.php";
				_waiting._show("资源同步中，请耐心等待。。。");
				$.ajax({
					url:"sync",
					type:"post",
					async:false,
					data:{"isVideo":isVideo},
					success:function(data){
						$("#source").text(data);
						_waiting._hide();
					},
					error:function(data){
						_waiting._hide();
						$.growlUI('资源同步失败');
					}
				});
			}
	};
</script>
<link>
<title>资源同步</title>
</head>
<body >
	<div class="list">
		<div class="content" align="center" style=" padding:0 4px;">
			<div id="" class="tools">
				<div class="left">
						<a class="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'a':'a1'}" href="javascript:void(0);" id="addWebsite" onclick="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'sysncnow.sync(\'0\')':''}">
							<img src="${rc.contextPath}/images/gif_45_085.gif" width="20" height="20">
							<b>网站资源同步&nbsp;</b></a>
						<a class="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'a':'a1'}" href="javascript:void(0);" id="modifyWebsite" onclick="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'sysncnow.sync(\'1\')':''}">
							<img src="${rc.contextPath}/images/gif_45_085.gif" width="20" height="20">
							<b>视频资源同步&nbsp;</b></a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="table" style="font-size: 21px;border: 1px solid #ccc; text-align: left; height: 90%;word-break:break-all !important; overflow-x:hidden;overflow-y: outo;">
				&nbsp;&nbsp;&nbsp;&nbsp;资源同步时，可能需要一定的时间，请慎重操作！如不是急需更新的内容，系统会在每天凌晨自行对所有资源信息进行同步操作！如需同步资源信息，请耐心等待。。。。
				<div id="source" style="font-size:17px;border: 1px solid #ccc; text-align: left; height: 90%;word-break:break-all !important; overflow-x:hidden;overflow-y: outo;">
					更新内容显示区
				</div>
			</div>
		</div>
	</div>
	
</body>
</html>